import React from 'react';
import { Router, Route } from 'dva/router';
import './less/index.less';
import App from './components/layout/App'

// 测点规则
import StationRule from './routes/stationRule/deviceManage/StationRule'
import PointerManage from './routes/stationRule/pointManage/PointerManage'
import ObserveManage  from './routes/stationRule/observeManage/ObserveManage'

// 巡检管理
import RoundCheck from './routes/processManage/roundCheck/RoundPlan'

// 系统设置
import System from './routes/system/System'

import LeftNav from './components/layout/LeftNav';



function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Route path="/" component={App}>
        <Route path="stationRule" component={StationRule}/>
        <Route path="pointManage" component={PointerManage}/>
        <Route path="observeManage" component={ObserveManage}/>
        <Route path="roundCheck" component={RoundCheck}/>
        <Route path="system" component={System}/>
      </Route>
    </Router>
  );
}

export default RouterConfig;
